/*
 * channelmonitor.h
 *
 * Created: 12/10/2012 12:17:26 PM
 *  Author: duerk@msoe.edu <Kevin Duer>
 *			zimmermane@msoe.edu <Evan Zimmerman>
 *			woottons@msoe.edu <Scott Wootton>
 */ 

#ifndef channelMonitor_h
#define channelMonitor_h

#define BIT_TIME 500 //The bit duration is 416 us according to specs
#define CLK_FREQ 16 //This is the clock frequency in MHz
#define T1_CLOCK_PRESCALER 8 //Sets the clock-prescaler to 8
#define T1_PRESCALER_CODE (0<<CS12)|(1<<CS11)|(0<<CS10) //Sets the code used for clock bit select
#define T1_OVERFLOW ((BIT_TIME*CLK_FREQ)/T1_CLOCK_PRESCALER) //The value to cause an overflow at the half-bit time, which shouuld be around 416
void initChannelMonitor();

#endif
